]> dgit.raspbian.org Git - gnome-shell.git/commit
st/label: Don't guard against NULL text
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 2 Sep 2022 16:46:13 +0000 (18:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 2 Sep 2022 16:59:07 +0000 (18:59 +0200)
commit329a28630312040e3a9da118772fb4452dc01717
tree5fee7b93eb5d3b573904f92d6088bd9534bd1607
parent6dc63d3a6265c9a0ed59cba2ffb4c0b9d78daa93
st/label: Don't guard against NULL text

Commit 9168f6055e marked the parameter as nullable, which is in
conflict with the precondition check. But given that NULL is
valid for the underlying ClutterText (and GtkLabel accepts it
as well), there's no strong argument for disallowing NULL, so
remove the precondition check.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2465>
src/st/st-label.c